﻿namespace TomatoBreak.Web
{
    using System.Web;

    using Castle.MicroKernel.Lifestyle;

    using Infrastructure;

    public class MvcApplication : HttpApplication
    {
        public MvcApplication()
        {
            new PerWebRequestLifestyleModule().Init(this);
        }

        protected void Application_Start()
        {
            Bootstrapper.Initialize();
        }

        protected void Application_End()
        {
            Bootstrapper.Cleanup();
        }
    }
}